package com.meteor.convert;

import com.meteor.entity.Building;
import com.meteor.vo.BuildingVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface BuildingConvert {

    BuildingConvert INSTANCE = Mappers.getMapper(BuildingConvert.class);

    BuildingVO convert(Building entity);

    Building convert(BuildingVO vo);

    List<BuildingVO> convertList(List<Building> list);

}
